p $tmp=0
while $tmp<$cpu_number
  eval "tvariable $per_cpu_c_%d",$tmp
  eval "tvariable $per_cpu_cy_%d",$tmp
  eval "tvariable $per_cpu_tmp_0_%d",$tmp
  eval "tvariable $per_cpu_tc_%d",$tmp
  eval "tvariable $per_cpu_tcy_%d",$tmp
  eval "tvariable $per_cpu_tmp_1_%d",$tmp
  p $tmp=$tmp+1
end

trace e1000_clean_rx_irq
  commands
    teval $per_cpu_c_0=$per_cpu_c_0+1
    teval $per_cpu_tmp_0_0=$clock
  end
list e1000_clean_rx_irq
trace 921 if ($per_cpu_c_0>100)
  commands
    teval $per_cpu_cy_0=$clock-$per_cpu_tmp_0_0+$per_cpu_cy_0
  end

list e1000_clean_rx_irq
trace 804
  commands
    teval $per_cpu_tmp_1_0=$clock
  end
list e1000_clean_rx_irq
trace 898 if ($per_cpu_c_0>100)
#trace 887 if ($per_cpu_c_0>100)
  commands
    teval $per_cpu_tc_0=$per_cpu_tc_0+1
    teval $per_cpu_tcy_0=$clock-$per_cpu_tmp_1_0+$per_cpu_tcy_0
  end

define showall
p $per_cpu_cy_0/($per_cpu_c_0-100)
p $per_cpu_tcy_0/$per_cpu_tc_0
end
